package zx.x.modules.yshapp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import zx.x.modules.yshapp.entity.PointEntity;

import java.util.Date;
import java.util.List;

@Mapper
public interface PointAppDao extends BaseMapper<PointEntity> {

    List<PointEntity> getMonthlyPoint(@Param("userId") Integer userId, @Param("firstDate") Date firstDate,
                                      @Param("lastDay") Date lastDay);

    List<PointEntity> last7DaysSignIn(@Param("userId")Integer userId, @Param("last7Day")Date last8Day);
}
